package com.evil.application.api;

import com.evil.application.config.ApplicationFeignErrorDecoder;
import com.evil.application.pojo.dto.robot.log.RobotLogReqDTO;
import com.evil.application.pojo.dto.robot.log.RobotLogRespDTO;
import com.evil.common.family.constant.ServiceNameConstant;
import com.evil.common.core.entity.PageModel;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 机器人日志接口
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@FeignClient(name = ServiceNameConstant.APPLICATION_SERVICE, configuration = {ApplicationFeignErrorDecoder.class})
public interface RemoteApplicationRobotLogService {

    /**
     * 机器人日志分页
     *
     * @param pageModel pageModel
     * @return RobotLogRespDTO 分页列表
     */
    @PostMapping("/remote/application/robot/log/page")
    PageInfo<RobotLogRespDTO> robotLogPage(@Validated PageModel<RobotLogReqDTO> pageModel);
}
